import service from '@/utils/request'

export const useChamberlogApi = (id: number) => {
	return service.get('/nb/chamber_log/findById' ,{
		params:{
			id:id
		}} )
}

export const useChamberlogSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.post('/nb/chamber_log/edit', dataForm)
	} else {
		return service.post('/nb/chamber_log/add', dataForm)
	}
}